<?php
namespace app\common\model;

use think\model\concern\SoftDelete;

class Product extends Base
{
    use SoftDelete;

    protected $name = 'product';
    protected $deleteTime = 'delete_time';

    public function getShowImgAttr($val)
    {
        if(!$val){
            return '';
        }

        return config('app.url') . $val;
    }
}